package com.peng.demo2;

public class Client {
    public static void main(String[] args) {
        ServiceImpl service=new ServiceImpl();
        ProxyInvocationHandler pro=new ProxyInvocationHandler();
        pro.setTarget(service);
        Service target = (Service) pro.getTarget();
        target.delete();
    }
}
